<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no,address=no"/>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../css/common.css"/>
    <link rel="stylesheet" href="../css/z_index.css">
    <style>
        .f25 {
            font-size: .50rem;
        }

        .banner {
            position: relative;
            padding: .4rem .2rem;
            color: #fff;
        }

        .lBox {
            background: url(../img/y_circle.png);
            -webkit-background-size: 100% 100%;
            background-size: 100% 100%;
            width: 2.5rem;
            height: 2.5rem;
        }

        .list {
            width: 50%;
            padding: .4rem 0;
            border-right: 1px solid #eee;
            border-bottom: 1px solid #eee;
        }
    </style>
</head>
<body>
<div class="bigBox bw">
    <div class="container">
        <!-- banner -->
        <div class="banner flex_a flex_sa b_diy" style="overflow: hidden;">
            <div class="lBox flex_aj flex_column">
                <li><span class="f25 incomeTotal"><!-- 1432.25 --></span>元</li>
                <li>昨日总收益</li>
            </div>
            <div class="rBox">
                <li>昨日总消耗：<span class="f25 paperTotal"><!-- 3000 --></span> </li>
                <li class="mt20 deviceTotal">
                    <!-- 总设备数：1000台 -->
                </li>
                <li class="mt20 onlineTotal">
                    <!-- 在线设备数：360台 -->
                </li>
            </div>
        </div>
        <ul class="flex_sb r_wrap">
            <li class="list flex_a flex_column" onclick="location.href='http://gxzjj.j.xiaozhuschool.com/h5/gxzjj/fd/html/zy_expend.html'">
                <img src="../img/xiaohao.png" style="width: 1.01rem;height: .99rem;" />
                <p class="mt20">消耗统计</p>
            </li>
            <li class="list flex_a flex_column" onclick="location.href='http://gxzjj.j.xiaozhuschool.com/h5/gxzjj/fd/html/zy_income.html'">
                <img src="../img/shouyi.png" style="width: 1.01rem;height: .99rem;" />
                <p class="mt20">收益统计</p>
            </li>
            <li class="list flex_a flex_column" onclick="location.href='http://gxzjj.j.xiaozhuschool.com/h5/gxzjj/fd/html/zy_manage.html'">
                <img src="../img/y_1.png" style="width: 1.01rem;height: .99rem;" />
                <p class="mt20">设备管理</p>
            </li>
            <li class="list flex_a flex_column" onclick="location.href='http://gxzjj.j.xiaozhuschool.com/h5/gxzjj/service/html/ser_onlineBooking.html'">
                <img src="../img/y_2.png" style="width: 1.01rem;height: .99rem;" />
                <p class="mt20">在线订货</p>
            </li>
            <li class="list flex_a flex_column" onclick="location.href='http://gxzjj.j.xiaozhuschool.com/h5/gxzjj/service/html/ser_wechatMg.html?type=2'">
                <img src="../img/y_3.png" style="width: 1.01rem;height: .99rem;" />
                <p class="mt20">公众号管理</p>
            </li>
            <li class="list flex_a flex_column agent">
                <img src="../img/daili.png" style="width: 1.01rem;height: .99rem;" />
                <p class="mt20">代理管理</p>
            </li>
            <li class="list flex_a flex_column" onclick="location.href='zl_staff.html'">
                <img src="../img/yuangong.png" style="width: 1.01rem;height: .99rem;" />
                <p class="mt20">员工管理</p>
            </li>
            <li class="list flex_a flex_column" onclick="location.href='http://gxzjj.j.xiaozhuschool.com/h5/gxzjj/fd/html/zy_center.html'">
                <img src="../img/y_4.png" style="width: 1.01rem;height: .99rem;" />
                <p class="mt20">我的账号</p>
            </li>
            <li class="flex_a flex_column list" onclick="location.href='http://gxzjj.j.xiaozhuschool.com/h5/gxzjj/fd/html/zy_wallet.html'" style="border:0;">
                <img src="../img/qianbao.png" style="width: 1.01rem;height: .99rem;" />
                <p class="mt20">我的钱包</p>
            </li>

        </ul>
    </div>
    <!-- 列表详情 -->
    <ul class="mt20">
    </ul>
</div>
</body>
</html>
<script src="../js/jquery.min.js"></script>
<script src="../js/dlc.js"></script>
<script>
    dlc_request('/api/index/getIndexTotal', { agentId: get_save('fd_id') }, function(res) {
        console.log(res);
        if (res.code == 1) {
            $('.deviceTotal').text("总设备数：" + res.data.deviceTotal + "台"); //总设备数
            $('.onlineTotal').text("在线设备数：" + res.data.onlineTotal + "台"); //昨天总收益
            $('.incomeTotal').text(res.data.incomeTotal); //在线设备数
            $('.paperTotal').text(res.data.paperTotal); //昨天总消耗
        } else {
            dlctipbox.show(res.msg);
        }
    })

    $('.agent').click(function(){
        if(get_save('role')==0 || get_save('role')==4){
            dlctipbox.show('您没有权限设置')
        }else{
            location.href='zl_agentMag.html'
        }
    })
</script>